package com.xingyun.info_manager.entity;

import java.io.Serializable;

public class ReturnBeans<T> implements Serializable {
    private Integer code = 0;//返回码(0:正确;1:错误)
    private String msg = "";//响应信息

    private Integer currPage;//当前页码

    private Integer pageSize;//每页条数

    private Integer count;////记录总数

    private T data;//返回对象

    public ReturnBeans() {
    }

    public ReturnBeans(Integer code, String msg, Integer currPage, Integer pageSize, Integer count, T data) {
        this.code = code;
        this.msg = msg;
        this.currPage = currPage;
        this.pageSize = pageSize;
        this.count = count;
        this.data = data;
    }

    public Integer getCurrPage() {
        return currPage;
    }

    public void setCurrPage(Integer currPage) {
        this.currPage = currPage;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "ReturnBeans{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", currPage=" + currPage +
                ", pageSize=" + pageSize +
                ", count=" + count +
                ", data=" + data +
                '}';
    }
}
